<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<script type="text/javascript">
	$(document).ready(function(){
		$("#loginAdminForm").submit(function(){
			if($(":input[name=id]").val()==""){
				alert("아이디를 입력바랍니다.");
				return false;
			}
			if($(":input[name=password]").val()==""){
				alert("비밀번호를 입력바랍니다.");
				return false;
			}
		});//submit
	});//ready
</script>
<center>
<form id="loginAdminForm" method="post" action="loginAdmin.do">
<fieldset style="width:320px;">
<legend align="left"><h2>관리자 로그인</h2></legend>
<table cellpadding='10'>
	<tr>
		<td align="right">아이디</td><td><input type="text" name="id" placeholder="아이디 입력" style="width:200px;"></td>
	</tr>
	<tr>
		<td align="right">비밀번호</td><td><input type="password" name="password" placeholder="비밀번호 입력" style="width:200px;"></td>
	</tr>
	<tr><td colspan='2'><hr></td></tr>
	<tr>
		<td colspan='2'><input type="submit" value="로그인" style="width:280px; height:40px;"></td>
	</tr>
	<tr><td colspan='2'></td></tr>
</table>
</fieldset>
</form>
</center>